package com.gis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gis.dto.MonitorDirectoryDTO;
// import com.gis.dto.MonitorDirectory;
import com.gis.entity.MonitorDirectory;
import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface DirectoryMonitorService extends IService<MonitorDirectory> {

    void stopMonitoring();

    List<MonitorDirectory> listMonitorDirectories();

    MonitorDirectory addMonitorDirectory(MonitorDirectoryDTO monitorDirectoryDTO);

    boolean removeMonitorDirectory(Long id);

    boolean updateMonitorDirectory(Long id, String newPath, String newDesc);

    public void registerAllDirs(Path start) throws IOException;

    List<File> getFilesByDirId(Long id);

    HashMap<String, ArrayList<?>> filesUploadHandler(List<File> files);

}